//
//  PNNetworkTool+User.swift
//  新浪微博
//
//  Created by MBP on 16/5/15.
//  Copyright © 2016年 MBP. All rights reserved.
//

import Foundation

extension PNNetworkTool {
    //利用token 登录
    func loadUser(access_token: String, uid: String, finished:([String: AnyObject]?) -> ()) {
        let urlString = "https://api.weibo.com/2/users/show.json"
        let parames = [
            "access_token": access_token,
            "uid": uid
        ]
        
        request(.GET, URLString: urlString, parameters: parames, finished: finished)
    }
}